def success(response={}, status=True, message=None):
    response['message'] = message
    response['status'] = status
    response['code'] = 20000
    return response, 200


def bad_request(response={}, message=None):
    response['error'] = 'bad request'
    response['message'] = message
    response['status'] = False
    return response, 400


def unauthorized(response={}, message=None):
    response['error'] = 'unauthorized'
    response['message'] = message
    response['status'] = False
    return response, 401


def forbidden(response={}, message=None):
    response['error'] = 'forbidden'
    response['message'] = message
    response['status'] = False
    return response, 401


def fail(response={}, message=None):
    response['error'] = 'fail'
    response['message'] = message
    response['status'] = False
    return response, 401